cmake_minimum_required(VERSION 3.5.1)
project(SLList)

set(SLList_SRC
	sllist.c
	#singly_linked_list.c
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_library(LslList STATIC ${SLList_SRC})
set_target_properties(LslList PROPERTIES OUTPUT_NAME lsllist)

add_library(lsllist SHARED ${SLList_SRC})
set_target_properties(lsllist PROPERTIES OUTPUT_NAME lsllist)

if(LINUX)
	install(TARGETS LslList ARCHIVE DESTINATION ${INSTALL_DIR}/lib/liblds)
	install(TARGETS lsllist LIBRARY DESTINATION ${INSTALL_DIR}/lib/${CMAKE_LIBRARY_ARCHITECTURE})
	install(FILES ${INCLUDE_DIR}/List/sllist.h 
		DESTINATION ${INSTALL_DIR}/include/liblds)
endif()
